package com.ruoyi.project.cms.project.mapper;

import com.ruoyi.project.cms.project.domain.Order;
import com.ruoyi.project.cms.project.domain.Process;
import com.ruoyi.project.cms.project.domain.ProcessA;
import com.ruoyi.project.cms.project.domain.ProcessB;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Service;

import java.util.List;

@Mapper
public interface OrderMapper {
    List<Order> searchAll();
    Order searchOne (int oid);

    List<ProcessA> searchA();

    List<ProcessA> searchA1(@Param("oid") int oid);
    @Select("select * from pppname where ppid =#{param1}")
    List<ProcessB> searchB(int ppid);

    int addProcess(Process process);
    @Update("update  project set staute = #{param2} where pid= #{param1}")
    int updateStatue(int pid,String staute);

    @Select("select * from p_process where ppid =#{ppid} and oid=#{oid}" )
    List<Process> searchC(@Param("ppid")int ppid,@Param("oid")int oid);
}
